summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-10-18 19:01:36 +0200
committerLioncash <mathew1800@gmail.com>2022-10-18 22:06:50 +0200
commit9393f90ccfd3131a021a1c5f3e42f20a287a6560 (patch)
treeaee5cd108717245e364e91d988181727ee6fd988
parentfixed_point: Use variable templates and concepts where applicable (diff)
downloadyuzu-9393f90ccfd3131a021a1c5f3e42f20a287a6560.tar
yuzu-9393f90ccfd3131a021a1c5f3e42f20a287a6560.tar.gz
yuzu-9393f90ccfd3131a021a1c5f3e42f20a287a6560.tar.bz2
yuzu-9393f90ccfd3131a021a1c5f3e42f20a287a6560.tar.lz
yuzu-9393f90ccfd3131a021a1c5f3e42f20a287a6560.tar.xz
yuzu-9393f90ccfd3131a021a1c5f3e42f20a287a6560.tar.zst
yuzu-9393f90ccfd3131a021a1c5f3e42f20a287a6560.zip
-rw-r--r--src/common/fixed_point.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/common/fixed_point.h b/src/common/fixed_point.h
index b2e489841..7f00dd7b5 100644
--- a/src/common/fixed_point.h
+++ b/src/common/fixed_point.h
@@ -301,29 +301,7 @@ public:
}
public: // comparison operators
- constexpr bool operator==(FixedPoint rhs) const {
- return data_ == rhs.data_;
- }
-
- constexpr bool operator!=(FixedPoint rhs) const {
- return data_ != rhs.data_;
- }
-
- constexpr bool operator<(FixedPoint rhs) const {
- return data_ < rhs.data_;
- }
-
- constexpr bool operator>(FixedPoint rhs) const {
- return data_ > rhs.data_;
- }
-
- constexpr bool operator<=(FixedPoint rhs) const {
- return data_ <= rhs.data_;
- }
-
- constexpr bool operator>=(FixedPoint rhs) const {
- return data_ >= rhs.data_;
- }
+ friend constexpr auto operator<=>(FixedPoint lhs, FixedPoint rhs) = default;
public: // unary operators
constexpr bool operator!() const {